Nginx的Z-Blog的伪静态配置方法
本站是在LNMP环境下运行,参考Nginx的Z-Blog的静态配置 复制代码 代码如下: server { listen 80; server_name zzvips.com blog.zzvips.com ; root /www/web/www_zzvips_com/public_html; index index.html index.php index.htm; error_page 400 /errpage/400.html; error_page 403 /errpage/403.html; error_page 404 /errpage/404.html; location ~ .php$ { proxy_pass :88; include naproxy.conf; #include ./rewrite/z-blog_nginx.conf; rewrite ^/post/([0-9]+).html$ /index.php?id=$1 last; rewrite ^/([0-9]+).html$ /index.php?id=$1 last; rewrite ^/(?:page_)?([0-9]*).html$ /index.php?page=$1 last; rewrite ^/category-([0-9]+)(?:_)?([0-9]*).html$ /index.php?cate=$1page=$2 last; rewrite ^/date-([0-9-]+)(?:_)?([0-9]*).html$ /index.php?date=$1page=$2 last; rewrite ^/author-([0-9]+)(?:_)?([0-9]*).html$ /index.php?auth=$1page=$2 last; rewrite ^/tags-([0-9]+)(?:_)?([0-9]*).html$ /index.php?tags=$1page=$2 last; } location / { try_files $uri @apache; } location @apache { proxy_pass :88; include naproxy.conf; } } ,。
相关热词:
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/jz/blog/9781.shtml
相关文章
热门TAG
win10 ecshop 主机 阿里云 解决 配置 C# C++ 解析 SQL语句 命令 Go语言 方法 CSS3 HTML5 CSS win7 MSSQL 服务器配置 IIS7.5 IIS7 IIS6 IIS CentOS 7 Linux oracle数据库 oracle phpcms discuz discuz教程最新文章
-
数字用单线表示了
时间:2021-01-23
-
z-blog分类目录静态化实现
时间:2020-12-28
-
zblog忘记后台账号密码怎么
时间:2020-12-27
-
zblog博客系统搬家图文教程
时间:2020-12-27
-
Z-Blog博客设置技巧:设置
时间:2020-12-27
-
zblog如果防止被黑?zblog安
时间:2020-12-27
-
zblog1.6版本固定域名后出错
时间:2020-12-27
-
Zblog在宝塔面板中设置40
时间:2020-12-27
热门文章
-
zblog如果防止被黑?zblog安全模式怎么设置
时间:2020-12-27
-
数字用单线表示了
时间:2021-01-23
-
zblog博客系统搬家图文教程
时间:2020-12-27
-
怎样让zblog网站的速度变快?
时间:2020-12-27
-
zblog1.6版本固定域名后出错的解决办
时间:2020-12-27
-
Z-Blog博客设置技巧:设置Gravatar头像无法显
时间:2020-12-27
-
zblog如何上传视频并播放
时间:2020-12-27
-
Zblog在宝塔面板中设置404错误页面的方法
时间:2020-12-27
-
z-blog分类目录静态化实现方法
时间:2020-12-28
-
zblog忘记后台账号密码怎么办?
时间:2020-12-27
